Beispiel #1
0
        public SettingForm()
        {
            InitializeComponent();
            st = new ADBProccessDLL.Setting();

            textBox_backupPath.Text = st.backupPath;

            if (textBox_backupPath.Text != System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments))
            {
                button_reset.BackColor = Color.LightPink;
            }

            try
            {
                RefreshDataGridView();

                buttonToggleProccess(ref button_showFileSize, ref st.isShowSizeFM);
                buttonToggleProccess(ref button_showHiddenFile, ref st.isShowHiddenFile);
                buttonToggleProccess(ref button_keepLatestApk, ref st.isKeepLatestApk);
            }
            catch
            {
                reset();
                RefreshDataGridView();
                MessageBox.Show("there is some Problem,Reset Setting...", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Beispiel #2
0
 public HomeForm()
 {
     InitializeComponent();
     server        = new AdbServer();
     currentDevice = null;
     IsDisconnect  = IsConnect = IsDebuging = false;
     st            = new ADBProccessDLL.Setting();
     stateMessage  = "";
 }