3
Answers

separate database for separate customers in a single windows c# application

Photo of arun kumar

arun kumar

12y
2.5k
1
Hello sir

i have created a single account software,But i need separate database (using ms access database) for separate company user account. how to create  Please Help me. i have attached the screen short


ex : company name

1. mva account 2011-2012
2.mva account 2012-2013
3 rama trading account 12-13


Answers (3)

0
Photo of Nilanka Dharmadasa
NA 5.2k 0 15y

Hi Friend,
 
As I feel, what you have done is correct. If you change the size of the matrix then definetely you will have to reassign the values of each and every pixel. I dont think you can stop that by using another way.
 
You can use a class like this. So you can set the values from outside according to OOP concepts.
 

public class MyImage
{
 private int _ImageSize = 16;
 private double[,] _Matrix;
public MyImage(int imgsize)
{
      _ImageSize = imgsize;
      _Matrix = new double[_ImageSize, _ImageSize];
}

 
 
 

 public double this[int x, int y]
 {
  get { return _Matrix[x, y]; }
  set { _Matrix[x, y] = value; }
 }
}

 
Mark Do you like this answer checkbox if this helps you.