示例#1
0
        public Tcp(string ip, int port, PhotoDocsManager pdw)
        {
            this.port = port;
            this.pdw  = pdw;

            this.ip   = ConfigurationManager.AppSettings["ServerIp"];
            this.port = int.Parse(ConfigurationManager.AppSettings["ServerPort"]);
        }
示例#2
0
 public MainWindow()
 {
     InitializeComponent();
     this.pdm    = new PhotoDocsManager(this);
     imagePixels = new uint[(int)drawArea.Width * (int)drawArea.Height];
     image       = new WriteableBitmap((int)drawArea.Width, (int)drawArea.Height, 100, 100, PixelFormats.Bgra32, null);
     this.pdm.FirstLoad();
     UsernameTextBox.Text = ConfigurationManager.AppSettings["Username"];
     SetColorPickerInitColors();
 }