コード例 #1
0
        void AddClick(object sender, RoutedEventArgs e)
        {
            var result = EditDatabaseConnectDialog.Run(Owner, new DBConnectInfo());

            if (result != null)
            {
                DBConnectInfos.Add(result);
            }
        }
コード例 #2
0
        void EditClick(object sender, RoutedEventArgs e)
        {
            if (DBConnectInfo == null)
            {
                return;
            }

            var result = EditDatabaseConnectDialog.Run(Owner, DBConnectInfo);

            if (result != null)
            {
                DBConnectInfos[DBConnectInfos.IndexOf(DBConnectInfo)] = result;
            }
        }
コード例 #3
0
        void CopyClick(object sender, RoutedEventArgs e)
        {
            if (DBConnectInfo == null)
            {
                return;
            }

            var result = EditDatabaseConnectDialog.Run(Owner, DBConnectInfo);

            if (result != null)
            {
                DBConnectInfos.Add(result);
            }
        }