Beispiel #1
0
 public PhotoStreamSetForm(DataSyncObject ds)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     configFile = getConfigFile();
     if (configFile != null)
     {
         getDefDir(configFile);
     }
     dso = ds;
 }
 public PhotoStreamSetForm(DataSyncObject ds)
 {
     InitializeComponent();
     this.StartPosition = FormStartPosition.CenterScreen;
     configFile         = getConfigFile();
     if (configFile != null)
     {
         getDefDir(configFile);
     }
     dso = ds;
 }
Beispiel #3
0
        public mainForm()
        {
            try
            {
                InitializeComponent();
                Icon   icon;
                string path = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
                resourcesPath = path + "resource" + "\\" + "notifyIco.ico";
                menuConfig    = path + "config" + "\\" + "menuConfig.xml";
                systemConfig  = path + "config" + "\\" + "config.xml";
                icon          = new Icon(resourcesPath);
                this.icloudNotifyIcon.Icon = icon;
                this.Icon = icon;

                ds = new DataSyncObject(systemConfig);
                this.StartPosition = FormStartPosition.CenterScreen;
                initMenu();
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }
        }
Beispiel #4
0
        public mainForm()
        {
            try
            {
                InitializeComponent();
                Icon icon;
                string path = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
                resourcesPath = path + "resource" + "\\" + "notifyIco.ico";
                menuConfig = path + "config" + "\\" + "menuConfig.xml";
                systemConfig = path + "config" + "\\" + "config.xml";
                icon = new Icon(resourcesPath);
                this.icloudNotifyIcon.Icon = icon;
                this.Icon = icon;

                ds = new DataSyncObject(systemConfig);
                this.StartPosition = FormStartPosition.CenterScreen;
                initMenu();
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }
        }
Beispiel #5
0
        public ContactForm(DataSyncObject ds)
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            this.PhoneTypeCb_1.FormattingEnabled = true;
//             this.PhoneTypeCb_1.Items.AddRange(new object[]{
//             "手机",
//             "家庭",
//             "工作",
//             "工作传真",
//             "家庭传真",
//             "传呼",
//             "其他"
//             });
            this.PhoneTypeCb_1.SelectedIndex = 0;

            this.PhoneTypeCb_2.FormattingEnabled = true;
//             this.PhoneTypeCb_2.Items.AddRange(new object[]{
//             "手机",
//             "家庭",
//             "工作",
//             "工作传真",
//             "家庭传真",
//             "传呼",
//             "其他"
//             });
            this.PhoneTypeCb_2.SelectedIndex = 1;


            this.EmailTypeCb_1.FormattingEnabled = true;
//             this.EmailTypeCb_1.Items.AddRange(new object[]{
//             "家庭",
//             "工作",
//             "手机",
//             "其他"
//             });
            this.EmailTypeCb_1.SelectedIndex = 0;

            this.EmailTypeCb_2.FormattingEnabled = true;
//             this.EmailTypeCb_2.Items.AddRange(new object[]{
//             "家庭",
//             "工作",
//             "手机",
//             "其他"
//             });
            this.EmailTypeCb_2.SelectedIndex = 1;



            this.IMTypeCb_1.FormattingEnabled = true;
//             this.IMTypeCb_1.Items.AddRange(new object[]{
//             "AIM",
//             "QQ",
//             "MSN",
//             "Skype",
//             "ICQ",
//             "飞信",
//             });
            this.IMTypeCb_1.SelectedIndex = 0;


            this.IMTypeCb_2.FormattingEnabled = true;
//             this.IMTypeCb_2.Items.AddRange(new object[]{
//             "AIM",
//             "QQ",
//             "MSN",
//             "Skype",
//             "ICQ",
//             "飞信",
//             });
            this.IMTypeCb_2.SelectedIndex = 1;


            this.AddrTypeCb_1.FormattingEnabled = true;
//             this.AddrTypeCb_1.Items.AddRange(new object[]{
//             "家庭",
//             "工作",
//             "其他"
//             });
            this.AddrTypeCb_1.SelectedIndex = 0;

            this.AddrTypeCb_2.FormattingEnabled = true;
//             this.AddrTypeCb_2.Items.AddRange(new object[]{
//             "家庭",
//             "工作",
//             "其他"
//             });
            this.AddrTypeCb_2.SelectedIndex = 1;

            dso = ds;

            bgw = new BackgroundWorker();
            bgw.WorkerSupportsCancellation = true;
            bgw.WorkerReportsProgress      = true;
            bgw.DoWork += new DoWorkEventHandler(RefreshContact);
            bgw.RunWorkerAsync();
        }
Beispiel #6
0
        public ContactForm(DataSyncObject ds)
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            this.PhoneTypeCb_1.FormattingEnabled = true;
            //             this.PhoneTypeCb_1.Items.AddRange(new object[]{
            //             "手机",
            //             "家庭",
            //             "工作",
            //             "工作传真",
            //             "家庭传真",
            //             "传呼",
            //             "其他"
            //             });
            this.PhoneTypeCb_1.SelectedIndex = 0;

            this.PhoneTypeCb_2.FormattingEnabled = true;
            //             this.PhoneTypeCb_2.Items.AddRange(new object[]{
            //             "手机",
            //             "家庭",
            //             "工作",
            //             "工作传真",
            //             "家庭传真",
            //             "传呼",
            //             "其他"
            //             });
            this.PhoneTypeCb_2.SelectedIndex = 1;

            this.EmailTypeCb_1.FormattingEnabled = true;
            //             this.EmailTypeCb_1.Items.AddRange(new object[]{
            //             "家庭",
            //             "工作",
            //             "手机",
            //             "其他"
            //             });
            this.EmailTypeCb_1.SelectedIndex = 0;

            this.EmailTypeCb_2.FormattingEnabled = true;
            //             this.EmailTypeCb_2.Items.AddRange(new object[]{
            //             "家庭",
            //             "工作",
            //             "手机",
            //             "其他"
            //             });
            this.EmailTypeCb_2.SelectedIndex = 1;

            this.IMTypeCb_1.FormattingEnabled = true;
            //             this.IMTypeCb_1.Items.AddRange(new object[]{
            //             "AIM",
            //             "QQ",
            //             "MSN",
            //             "Skype",
            //             "ICQ",
            //             "飞信",
            //             });
            this.IMTypeCb_1.SelectedIndex = 0;

            this.IMTypeCb_2.FormattingEnabled = true;
            //             this.IMTypeCb_2.Items.AddRange(new object[]{
            //             "AIM",
            //             "QQ",
            //             "MSN",
            //             "Skype",
            //             "ICQ",
            //             "飞信",
            //             });
            this.IMTypeCb_2.SelectedIndex = 1;

            this.AddrTypeCb_1.FormattingEnabled = true;
            //             this.AddrTypeCb_1.Items.AddRange(new object[]{
            //             "家庭",
            //             "工作",
            //             "其他"
            //             });
            this.AddrTypeCb_1.SelectedIndex = 0;

            this.AddrTypeCb_2.FormattingEnabled = true;
            //             this.AddrTypeCb_2.Items.AddRange(new object[]{
            //             "家庭",
            //             "工作",
            //             "其他"
            //             });
            this.AddrTypeCb_2.SelectedIndex = 1;

            dso = ds;

            bgw = new BackgroundWorker();
            bgw.WorkerSupportsCancellation = true;
            bgw.WorkerReportsProgress = true;
            bgw.DoWork += new DoWorkEventHandler(RefreshContact);
            bgw.RunWorkerAsync();
        }
Beispiel #7
0
 public DeletePhoto(DataSyncObject ds, string[] fs)
 {
     files = fs;
     d     = ds;
 }
Beispiel #8
0
 public UploadPhoto(DataSyncObject ds, string[] fs)
 {
     dso   = ds;
     files = fs;
 }
Beispiel #9
0
 public UploadPhoto(DataSyncObject ds, string[] fs)
 {
     dso = ds;
     files = fs;
 }
Beispiel #10
0
 public DeletePhoto(DataSyncObject ds, string[] fs)
 {
     files = fs;
     d = ds;
 }